using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Hsp.WebNovels.Model.Models
{
    /// <summary>
    /// 内容替换数据实体
    /// </summary>
    [Table("Replaces")]
    [SugarTable("Replaces")]
    public partial class Replace
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
        public int Id { get; set; }

        /// <summary>
        /// 小说编号
        /// </summary>
        [DisplayName("小说编号")]
        [StringLength(36)]
        public string? NovelId { get; set; }

        /// <summary>
        /// 源内容
        /// </summary>
        [Required(ErrorMessage="{0}不能为空")]
        [DisplayName("源内容")]
        public string? Source { get; set; }

        /// <summary>
        /// 替换内容
        /// </summary>
        [DisplayName("替换内容")]
        public string? Target { get; set; }

        /// <summary>
        /// 优先级
        /// </summary>
        [DisplayName("优先级")]
        public int? Priority { get; set; }

        /// <summary>
        /// 已删除：0-否；1-是；
        /// </summary>
        [DisplayName("已删除")]
        public int? Deleted { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DisplayName("添加时间")]
        [DataType(DataType.DateTime)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DisplayName("更新时间")]
        [DataType(DataType.DateTime)]
        public DateTime? UpdateTime { get; set; }

 
    }
}
